package decorator.startbuzz;

/**
 * DarkRoast 咖啡
 *
 * @author jacob
 * @Date 2020/12/5 02:05
 */
public class DarkRoast extends Beverage {

    private double darkRoastCost;

    public DarkRoast() {
        this.setDescription("this is dark roast");
    }

    public DarkRoast(double darkRoastCost){
        this.darkRoastCost = darkRoastCost;
        this.setDescription("this is dark roast");
    }

    @Override
    public double cost() {
        return darkRoastCost + super.cost();
    }
}

